package com.stec.masterdata.service.impl;

import com.stec.framework.service.mybatis.AdvSqlDaoImpl;
import com.stec.masterdata.entity.Teacher;
import com.stec.masterdata.service.TeacherService;
import com.stec.utils.MapUtils;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TeacherServiceImpl extends AdvSqlDaoImpl<Teacher,String> implements TeacherService {
    @Override
    public int selectByName(String name) {
        return this.selectMapperOne("com.stec.masterdata.mapper.Mapper.selectByName", MapUtils.newHashMap("name",name));
    }

    @Override
    public List<Teacher> selectOne(String name) {
        return this.selectMapperList("com.stec.masterdata.mapper.Mapper.selectOne", MapUtils.newHashMap("name",name));
    }
}
